package routers

import (
	"github.com/gin-gonic/gin"
	"gormstu/controller"
)

func OptRouters(r *gin.Engine) {
	opt := r.Group("/opt")
	{
		opt.GET("/add", controller.OptTable{}.AddController)
		opt.GET("/search", controller.OptTable{}.SearchController)
		opt.GET("/condition", controller.OptTable{}.ConditionController)
		opt.GET("/testSearch", controller.OptTable{}.SearchTestController)
		opt.GET("/edit", controller.OptTable{}.ModifiedController)
		opt.GET("/editMark", controller.OptTable{}.ModifiedMarkController)
		opt.GET("/delete", controller.OptTable{}.DeleteSingleController)
	}
}
